package com.fancy.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;

/**
 * Created by FancyFong on 9/9/2017.
 */

@Controller
@RequestMapping("/productInfoController")
public class ProductInfoController {

    @RequestMapping(params = "list")
    public ModelAndView productInfoPage(Map<String,Object> map){
        map.put("name","fancy");
        map.put("productInfolist",new ArrayList<>(Arrays.asList("a","b","c")));
        return new ModelAndView("web/productInfo/productInfoList");
    }


}
